package air

type Event = string

const (
	OnConnect    Event = "connect"
	OnJoin       Event = "join"
	OnLeave      Event = "leave"
	OnReconnect  Event = "reconnect"
	OnDisconnect Event = "disconnect"
	OnClose      Event = "close"
	OnHeartbeat  Event = "heartbeat"
)

type EventHandler func(ctx Context) error
